import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from "typeorm";


@Entity({
    name: 'sso_log'
})
export class SsoLog {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({ default: '' })
    system: string;

    @Column()
    path: string;

    @Column({ default: 0 })
    total: number;

    @Column({ default: 0 })
    success_count: number;

    @Column({ default: 0 })
    fail_count: number;

    @Column({ default: 0 })
    avg_time: number;

    @CreateDateColumn()
    create_date: Date;

}